import request from '@/utils/request'

// 查询打印记录列表
export function listLog(query) {
  return request({
    url: '/prt/printlog/list',
    method: 'get',
    params: query
  })
}

// 查询打印记录详细
export function getLog(printLogId) {
  return request({
    url: '/prt/printlog/' + printLogId,
    method: 'get'
  })
}

// 新增打印记录
export function addLog(data) {
  return request({
    url: '/prt/printlog',
    method: 'post',
    data: data
  })
}

// 修改打印记录
export function updateLog(data) {
  return request({
    url: '/prt/printlog',
    method: 'put',
    data: data
  })
}

// 删除打印记录
export function delLog(printLogId) {
  return request({
    url: '/prt/printlog/' + printLogId,
    method: 'delete'
  })
}

// 导出打印记录
export function exportLog(query) {
  return request({
    url: '/prt/printlog/export',
    method: 'get',
    params: query
  })
}